Page({
  data: {
    list: []
  },
  onLoad() {
    // wx.$toast('成功')
    this.getCommunity()
  },

  async getCommunity() {
    const res = await wx.$http.get('/announcement')
    console.log(res);
    this.setData({ list: res })
  }
})